<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Return information regarding function argument(s)</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.parsekit-compile-string.html">parsekit_compile_string</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.spl.html">SPL</a></div>
 <div class="up"><a href="ref.parsekit.html">Parsekit 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.parsekit-func-arginfo" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">parsekit_func_arginfo</h1>
  <p class="verinfo">(PECL parsekit &gt;= 0.3.0)</p><p class="refpurpose"><span class="refname">parsekit_func_arginfo</span> &mdash; <span class="dc-title">Return information regarding function argument(s)</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.parsekit-func-arginfo-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>parsekit_func_arginfo</strong></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$function</code></span>
   )</div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.parsekit-func-arginfo-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">function</code></em></dt>

     <dd>

      <p class="para">
       A string describing a function, or an array describing a class/method.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.parsekit-func-arginfo-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an array containing argument information.
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.parsekit-func-arginfo-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-3702">
    <p><strong>Example #1 <span class="function"><strong>parsekit_func_arginfo()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">foo</span><span style="color: #007700">(</span><span style="color: #0000BB">$bar</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">stdClass&nbsp;$baz</span><span style="color: #007700">,&nbsp;&amp;</span><span style="color: #0000BB">$bomb</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$bling&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">)&nbsp;{<br />}<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">parsekit_func_arginfo</span><span style="color: #007700">(</span><span style="color: #DD0000">'foo'</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
array(4) {
  [0]=&gt;
  array(3) {
    [&quot;name&quot;]=&gt;
    string(3) &quot;bar&quot;
    [&quot;allow_null&quot;]=&gt;
    bool(true)
    [&quot;pass_by_reference&quot;]=&gt;
    bool(false)
  }
  [1]=&gt;
  array(4) {
    [&quot;name&quot;]=&gt;
    string(3) &quot;baz&quot;
    [&quot;class_name&quot;]=&gt;
    string(8) &quot;stdClass&quot;
    [&quot;allow_null&quot;]=&gt;
    bool(false)
    [&quot;pass_by_reference&quot;]=&gt;
    bool(false)
  }
  [2]=&gt;
  array(3) {
    [&quot;name&quot;]=&gt;
    string(4) &quot;bomb&quot;
    [&quot;allow_null&quot;]=&gt;
    bool(true)
    [&quot;pass_by_reference&quot;]=&gt;
    bool(true)
  }
  [3]=&gt;
  array(3) {
    [&quot;name&quot;]=&gt;
    string(5) &quot;bling&quot;
    [&quot;allow_null&quot;]=&gt;
    bool(true)
    [&quot;pass_by_reference&quot;]=&gt;
    bool(false)
  }
}
</pre></div>
    </div>
   </div>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.parsekit-compile-string.html">parsekit_compile_string</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.spl.html">SPL</a></div>
 <div class="up"><a href="ref.parsekit.html">Parsekit 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
